package com.loan.market.view

import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.view.ViewGroup
import com.github.florent37.singledateandtimepicker.R
import com.github.florent37.singledateandtimepicker.SingleDateAndTimePicker

class DatePicker @JvmOverloads constructor(
    context: Context, attrs: AttributeSet? = null
) : SingleDateAndTimePicker(context, attrs) {
    init {
        val view = rootView.findViewById<View>(R.id.dtSelector)
        view.alpha = 1f
        (view.parent as ViewGroup).let {
            it.removeView(view)
            it.addView(view, 0)
        }
    }
}